package com.ruoyi.web.core.send;

import com.github.misterchangray.core.annotation.MagicClass;
import com.github.misterchangray.core.annotation.MagicField;
import com.github.misterchangray.core.enums.ByteOrder;

@MagicClass(byteOrder = ByteOrder.LITTLE_ENDIAN)
public class LoginSendMagicDto {

    @MagicField(order = 1, size = 4)
    private int m_ulHoldTime;//单位秒，会话维持时间，0XFFFFFFFF(直到断开连接或自动退出)

    @MagicField(order = 2, size = 4)
    private int m_ulLogoutTime;//单位秒，无请求自动登出时间，0XFFFFFFFF(直到断开连接或自动退出)

    @MagicField(order = 3, size = 16)
    private String m_ucConnectId;//16字节的唯一id，标识当前会话 UUID

    public int getM_ulHoldTime() {
        return m_ulHoldTime;
    }

    public void setM_ulHoldTime(int m_ulHoldTime) {
        this.m_ulHoldTime = m_ulHoldTime;
    }

    public int getM_ulLogoutTime() {
        return m_ulLogoutTime;
    }

    public void setM_ulLogoutTime(int m_ulLogoutTime) {
        this.m_ulLogoutTime = m_ulLogoutTime;
    }

    public String getM_ucConnectId() {
        return m_ucConnectId;
    }

    public void setM_ucConnectId(String m_ucConnectId) {
        this.m_ucConnectId = m_ucConnectId;
    }
}
